package net.neptech.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.neptech.mapper.InstanceCopyMapper;
import net.neptech.model.workflow.InstanceCopy;
import net.neptech.service.InstanceCopyService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Saya
 * @Date 2025/8/20 12:04
 * @Description TODO
 **/
@Service
public class InstanceCopyServiceImpl extends ServiceImpl<InstanceCopyMapper, InstanceCopy> implements InstanceCopyService {
    /**
     * 清理数据
     */
    @Override
    public void clearProcess(List<String> flowIdList) {
        this.lambdaUpdate()
                .in(InstanceCopy::getFlowId, flowIdList)
                .remove();
    }
}
